package za.co.chris.traintimes.beans;

public class Time {

	private final String time;
	private final Line line;
	private final Station station;
	private final String trainNo;
	private final boolean direction;
	private final String days;

	public Time(Line line, Station station, String trainNo, boolean direction, String days, String time) {
		this.time = time;
		this.line = line;
		this.station = station;
		this.trainNo = trainNo;
		this.direction = direction;
		this.days = days;
	}

	public String getTime() {
		return time;
	}

	public Line getLine() {
		return line;
	}

	public Station getStation() {
		return station;
	}

	public String getTrainNo() {
		return trainNo;
	}

	public boolean isDirection() {
		return direction;
	}

	public String getDays() {
		return days;
	}

	@Override
	public String toString() {
		return trainNo + " " + time;
	}
}
